const mammoth = require("mammoth");

mammoth.convertToHtml({path: "../workspace/*.docx"})
    .then(function (result) {
        const html = result.value; // The generated HTML
        console.log(html);
        // 可以选择将html写入文件
        // fs.writeFileSync('../workspace/*.html', html);
    })
    .catch(function (err) {
        console.log(err);
    });
